/* You can add global styles to this file, and also import other style files */
//@import '@angular/material/prebuilt-themes/deeppurple-amber.css';

@import '@angular/material/prebuilt-themes/deeppurple-amber.css';

$main-text-color: rgb(68, 68, 68);
$main-bg-color: #535353;
$default-icon-bg: #eee;
$calendar-width: 30%;
$message-width: 70%;

.nav-col {
  width: $calendar-width;
  background: rgba(239, 239, 239, 0.3);
  max-height: 533px;
  overflow: auto;
}

.message-col {
    width: $message-width;
    max-height: 533px;
    overflow: auto;
}

.content-body{
    height: 530px;
}

.scrollbar {
  padding: 0 2px;
  box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

 ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

 ::-webkit-scrollbar-track {
    background: 0 0;
}

 ::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}

 ::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}

 ::-webkit-scrollbar-corner {
    background-color: #535353;
}

 ::-webkit-scrollbar-resizer {
    background-color: #ccc;
}

body ::-webkit-scrollbar {
    width: 8px;
}

body ::-webkit-scrollbar-thumb {
    background-color: #d2d2d2;
}

body {
    font: 12px/1.3 Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    background: linear-gradient(-60deg, #0090c4 0%, #180253 100%) no-repeat fixed;
    min-width: 1024px;
}

* {
    text-decoration: none;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    outline: none;
    color: inherit;
}

button,
input,
textarea {
    -webkit-appearance: none;
    resize: none;
}

li {
    list-style: none;
}
.text-ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

div.o-count-down {
    .o-cd-item {
        display: inline-block;
        vertical-align: middle;
        margin: 0 1px;
        padding: 2px;
        font-weight: bold;
        &.o-cd-num {
            background: $main-bg-color;
            color: rgb(254, 140, 0);
            text-align: center;
            border-radius: 6px;
            font-size: 15px;
            width: 15px;
            height: 21px;
            box-sizing: border-box;
        }
        &.o-cd-colon {
            color: $main-text-color;
        }
    }
}

div.o-lesson-datetime {
    color: rgb(255, 150, 10);
}

.header {
    background: #535353;
    color: white;
    height: 56px;
    line-height: 56px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.body {
  height: 534px;
}

.text-ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    &.flex-row {
        flex-direction: row;
    }
    &.flex-column {
        flex-direction: column;
    }

    &.flex-grid{
        align-content: center;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .flex-disable-shrink {
        flex-shrink: 0;
    }


}

.icon {
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
    background-size: 100%;
    background: $default-icon-bg;
    &.emoji {
        background: url(assets/images/icons/chat_emoji.png) no-repeat center;
        &:hover {
            background-image: url(./assets/images/icons/chat_emoji_active.png);
        }
    }
    &.send {
        background: url(assets/images/icons/chat_send.png) no-repeat center;
        &:hover {
            background-image: url(./assets/images/icons/chat_send_active.png);
        }
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pull-right {
    float: right
}

div.loading {
    display: block;
    min-height: 45px;
    background: url(./assets/images/loading.gif) no-repeat center;

    &.logo{
      min-height: 440px;
      background: url(./assets/images/logo.png) no-repeat center;
    }

}

div.error {
    display: block;
    min-height: 140px;
    background: url(./assets/images/error.png) no-repeat center;
}


div.content-box {
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(12, 133, 181, 0.13);
}

.btn {
  background: rgb(231,36,36);
  color: white;
  display: inline-block;
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;

  &:hover{
    background: #bd1d1d;
  }

  &.btn-close {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1em;
    // background: #666;
    // color: #fff;
    padding: 0.4em;
    text-align: center;
    border-radius: 50%;
    float: right;
  }
}

.msg {
  // margin-top: 20px;
 height: 20px;

 .tips {
   background: #eee;
   font-size: 12px;
   padding: 4px;
   color: #aaa;
   border-radius: 0;
 }

}
